home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1996 April / Software of the Month Club 1996 April.iso / pc / os2 / psutils / src / pserror.h < prev    next >
C/C++ Source or Header  |  1996-02-21  |  541b  |  21 lines

  1. /* pserror.h
  2.  * Copyright (C) Angus J. C. Duggan 1991-1995
  3.  * See file LICENSE for details.
  4.  *
  5.  * Header file for external functions in pserror.c
  6.  */
  7.  
  8. #include <stdarg.h>
  9.  
  10. /* message flags */
  11. #define MESSAGE_NL    1    /* Newline before message if necessary */
  12. #define MESSAGE_PROGRAM    2    /* announce program name */
  13. #define MESSAGE_EXIT    4    /* do not return */
  14.  
  15. /* message types */
  16. #define FATAL        (MESSAGE_EXIT|MESSAGE_PROGRAM|MESSAGE_NL)
  17. #define WARN        (MESSAGE_NL|MESSAGE_PROGRAM)
  18. #define LOG        0
  19.  
  20. extern void message(int flags, char *format, ...) ;
  21.